package 设计模式.单例模式;

/**
 * @author : K k
 * @date : 21:33 2020/10/5
 */
public enum SingletonEnum {
    singleton("kk");
    private String name;

    private SingletonEnum(String name){
        this.name=name;
    }

    public void action(){
        System.out.println("枚举类的方法"+name);
    }
}
